package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> getDestByDeep(int deep);

    List<Destination> getDestByIds(Long[] ids);

    List<Destination> selectForList(DestinationQuery qo);

    List<Destination> selectSubDestByParentId(Long parentId);

    void changeHotValue(@Param("hot") boolean hot, @Param("id") Long id);
}